#pragma once
#include <iostream>

namespace ns_task
{
    class Task
    {
    public:
        int _x;
        int _y;
        char _op;

    public:
        Task() {}
        Task(int x, int y, char op) : _x(x), _y(y), _op(op){};
        int Run()
        {
            int res = 0;
            switch (_op)
            {
            case '+':
                res = _x + _y;
                break;
            case '-':
                res = _x - _y;
                break;
            case '*':
                res = _x * _y;
                break;
            case '/':
                res = _x / _y;
                break;
            case '%':
                res = _x % _y;
                break;
            default:
                std::cout << "bug" << std::endl;
                break;
            }
            return res;
        }
        ~Task() {};
    };
}